<?php

new \Slim\Middleware\JwtAuthentication([
    "secure" => getenv('MERCHANT_JWT_SECURE'),
    "path" => ["/"],
    "passthrough" => [],
    "relaxed" => ["localhost"],
    "secret" => getenv('MERCHANT_JWT_SECRET'),
    "algorithm" => ["HS256", "HS384"],
    "logger" => $container['logger'],
    "callback" => function ($request, $response, $args) use ($container) {
        $container["merchant"] = $args["decoded"];
    }
]);
